/**
 * 
 */
package base.jdk;

import java.util.Map;
import java.util.Map.Entry;
import java.util.Properties;

/**
 * @author bliu
 *
 */
public class SystemTest {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		/*Map<String, String> map = System.getenv();
		for (Entry< String, String> entry: map.entrySet()) {
			System.out.println(entry.getKey() + " : " + entry.getValue());
		}
		*/
		String osName = System.getProperty("os.name"); //操作系统名称  
		String osArch = System.getProperty("os.arch"); //操作系统构架  
		String osVersion = System.getProperty("os.version"); //操作系统版本  
		System.out.println(osName);
		System.out.println(osArch);
		System.out.println(osVersion);
	}

}
